package org.particlethink.handler;

import org.particlethink.entry.OrderStatus;


public class OrderStatusHandler extends BaseEnumHandler<OrderStatus> {
    public OrderStatus fromCode(int code) {
        switch (code) {
            case 1:
                return OrderStatus.Unshipped;
            case 2:
                return OrderStatus.Refuse;
            case 3:
                return OrderStatus.InProgress;
            case 4:
                return OrderStatus.Done;
        }
        return null;
    }
}
